package com.yipao.db.dao.coupon;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoCouponUser;
import com.yipao.db.domain.YipaoCouponUserExample;

public interface CouponUserMapper {
    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    long countByExample(YipaoCouponUserExample example);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int deleteByExample(YipaoCouponUserExample example);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int insert(YipaoCouponUser record);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int insertSelective(YipaoCouponUser record);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    YipaoCouponUser selectOneByExample(YipaoCouponUserExample example);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    YipaoCouponUser selectOneByExampleSelective(@Param("example") YipaoCouponUserExample example, @Param("selective") YipaoCouponUser.Column ... selective);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    List<YipaoCouponUser> selectByExampleSelective(@Param("example") YipaoCouponUserExample example, @Param("selective") YipaoCouponUser.Column ... selective);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    List<YipaoCouponUser> selectByExample(YipaoCouponUserExample example);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    YipaoCouponUser selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoCouponUser.Column ... selective);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    YipaoCouponUser selectByPrimaryKey(Integer id);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    YipaoCouponUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") YipaoCouponUser record, @Param("example") YipaoCouponUserExample example);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") YipaoCouponUser record, @Param("example") YipaoCouponUserExample example);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(YipaoCouponUser record);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(YipaoCouponUser record);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int logicalDeleteByExample(@Param("example") YipaoCouponUserExample example);

    /**

     * This method corresponds to the database table yipao_coupon_user
     *
     * @mbg.generated
     */
    int logicalDeleteByPrimaryKey(Integer id);
}
